package com.itheima.userService.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class userController {
    @GetMapping("/test/{num}")
    public String test(@PathVariable("num")int num){
        return "是我"+num+"执行了";
    }
}
